package com.web.portal.services;

import com.baomidou.mybatisplus.extension.service.IService;
import com.web.portal.pojo.PortalUser;

import javax.servlet.http.HttpServletResponse;

public interface UserService extends IService<PortalUser> {
    PortalUser selectByUserCode(String userCode);

    PortalUser selectByUserCodeInfo(String userCode);

    void createCaptcha(HttpServletResponse response, String captchaKey) throws Exception;

    PortalUser checkSobUser();

    String createToken(HttpServletResponse response, PortalUser portalUserFromDb);

    void convertUser(PortalUser portalUser);

    PortalUser paresByTokenKey(String tokeKey);

    boolean isAvailable(PortalUser portalUser);
}
